<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <link rel="stylesheet" href="css/swiper-bundle.min.css">
    <style>
        *{
            margin:0;
            padding:0;
        }
        .swiper-container{
            width: 100%;
            height: 200px;
            background: rgb(158, 20, 20);
        }
    </style>
</head>
<body> 
    <div id="app"></div>
        <div class="swiper-container">
            <div class="swiper-wrapper">
              <div class="swiper-slide">Slide 1</div>
              <div class="swiper-slide">Slide 2</div>
              <div class="swiper-slide">Slide 3</div>
              <div class="swiper-slide">Slide 4</div>
              <div class="swiper-slide">Slide 5</div>
              <div class="swiper-slide">Slide 6</div>
              <div class="swiper-slide">Slide 7</div>
              <div class="swiper-slide">Slide 8</div>
              <div class="swiper-slide">Slide 9</div>
              <div class="swiper-slide">Slide 10</div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>
    
            <!-- 如果需要导航按钮 -->
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
          </div>
    </div>
    <script src="js/swiper-bundle.min.js"></script>
    <script>
        var mySwiper = new Swiper('.swiper-container',{
            direction: 'horizontal',
            loop: true,
            autoplay: { //定时
                delay: 1000, //事件
                disableOnInteraction:false, //操作后是否停止自动切换
            },
            pagination:{ //分页器
                el:".swiper-pagination",
                dynamicBullets: true
            },
            navigation:{ //前后切换按钮
                nextEl: ".swiper-button-next",
                prevEl: ".swiper-button-prev",
            }
        });        

    </script>
</body>
</html>